Sensitivity Analysis of the Mm5 Weather Model Using Automatic Diierentiation
نویسندگان
چکیده
We present a general method for using automatic diierentiation to facilitate model sensitivity analysis. Automatic diierentiation techniques augment, in a completely mechanical fashion, an existing code such that it also simultaneously and eeciently computes derivatives. Our method allows the sensitivities of the code's outputs to its parameters and inputs to be determined with minimal human eeort by exploiting the relationship between diierentiation and formal perturbation theory. Employing this method, we performed a sensitivity study of the MM5 code, a mesoscale weather model jointly developed by Penn State University and the National Center for Atmospheric Research, comprising roughly 40,000 lines of Fortran 77 code. Our results show that AD-computed sensitivities exhibit superior accuracy compared with divided diierences approximations computed from nite-amplitude perturbations, while consuming comparable or less CPU time and less human labor. We also comment on a numerically induced precursor wave that would almost certainly have been undetectable if one used a divided diierence method.
منابع مشابه
Automatic Diierentiation, Tangent Linear Models, and (pseudo)adjoints 1
This paper provides a brief introduction to automatic diierentiation and relates it to the tangent linear model and adjoint approaches commonly used in meteorology. After a brief review of the forward and reverse mode of automatic diierentiation, the ADIFOR automatic diierentiation tool is introduced, and initial results of a sensitivity-enhanced version of the MM5 PSU/NCAR mesoscale weather mo...
متن کاملAutomatic Diierentiation, Tangent Linear Models, and (pseudo)adjoints
This paper provides a brief introduction to automatic diierentiation and relates it to the tangent linear model and adjoint approaches commonly used in meteorology. After a brief review of the forward and reverse mode of automatic diierentiation, the ADIFOR automatic diierentiation tool is introduced, and initial results of a sensitivity-enhanced version of the MM5 PSU/NCAR mesoscale weather mo...
متن کاملA Better Understanding of the Effects of Software Defects in Weather Simulation
We investigate the impact of bugs in a well-known weather simulation system, MM5. The findings help fill a gap in knowledge about the dependability of this widely used system, leading to both new understanding and further questions. In the research reported here, bugs were artificially added to MM5. Their effects were analyzed to statistically understand the effects of bugs on MM5. In one analy...
متن کاملApplication of Automatic Diierentiation to Groundwater Transport Models
Automatic diierentiation is a technique for generating eecient and reliable derivative codes from computer programs with minimal human eeort. Derivatives of model output with respect to input are obtained exactly. No intrinsic limits to program length or complexity exist for this procedure. Calculation of derivatives of complex numerical models is required in system optimization, parameter iden...
متن کاملOperator Overloading as an Enabling Technology for Automatic Diierentiation
We present an example of the science that is enabled by object-oriented programming techniques. Scientiic computation often needs derivatives for solving nonlinear systems such as those arising in many PDE algorithms, optimization, parameter identiication, stii ordinary diierential equations, or sensitivity analysis. Automatic diierentiation computes derivatives accurately and eeciently by appl...
متن کامل